package j2metris;

import j2metris.game.Game;
import javax.microedition.midlet.MIDlet;

public class J2metrisApp extends MIDlet
{
    public static final boolean DEBUG = true;
    private static J2metrisApp instance;

    public static J2metrisApp getInstance()
    {
        return instance;
    }
    public J2metrisApp()
    {
        super();
        instance = this;
    }

    public void startApp()
    {
        GlobalSettings settings = new GlobalSettings();
        Game.createGame(settings);
        Game.getInstance().play();
    }

    public void pauseApp()
    {
        Game.getInstance().stopGravity();
    }

    public void destroyApp(boolean unconditional)
    {
        Game.getInstance().stopGravity();
    }
}
